<?php
// +----------------------------
// | Created by PhpStorm
// +----------------------------
// | Author: YnnSon
// +----------------------------
namespace app\api\controller\v1;

use app\api\model\Ad as AdModel;

/**
 * Banner图
 * Class Ad
 * @package app\api\controller\v1
 */
class Ad extends BaseController
{
    /**
     * @Desc 获取banner图
     * @return array
     */
    public function getAd()
    {
        $list = AdModel::getAd();
        return array_column($list, 'ad_code');
    }
}